package com.example.pets.model.entities;



import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Clue {

    public String clid;

    private String provider; // 提供线索的用户文档的引用 (例如，引用 User 集合中的文档)

    private String lost; // 线索关联的丢失物品文档的引用 (例如，引用 Lost 集合中的文档)

    private String content; // 线索的文本内容

    private List<String> imagesUrl; // 线索图片 URL 的列表

    private String sightLocation; // 看到线索的地理坐标点

    private String createTime; // 线索创建的时间




    public Clue() {
        this.imagesUrl = new ArrayList<>();
    }

    public Clue(String clid, String provider, String lost, String content, List<String> imagesUrl, String sightLocation, String createTime) {
        this.clid = clid;
        this.provider = provider;
        this.lost = lost;
        this.content = content;
        this.imagesUrl = imagesUrl;
        this.sightLocation = sightLocation;
        this.createTime = createTime;
    }


    public Clue(String provider, String lost, String content, List<String> imagesUrl, String sightLocation, String createTime) {
        this.provider = provider;
        this.lost = lost;
        this.content = content;
        this.imagesUrl = imagesUrl;
        this.sightLocation = sightLocation;
        this.createTime = createTime;
    }

    public String getClid() {
        return clid;
    }



    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getLost() {
        return lost;
    }

    public void setLost(String lost) {
        this.lost = lost;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<String> getImagesUrl() {
        return imagesUrl;
    }

    public void setImagesUrl(List<String> imagesUrl) {
        this.imagesUrl = imagesUrl;
    }

    public String getSightLocation() {
        return sightLocation;
    }

    public void setSightLocation(String sightLocation) {
        this.sightLocation = sightLocation;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Clue{" +
                "clid='" + clid + '\'' +
                ", provider=" + provider +
                ", lost=" + lost +
                ", content='" + content + '\'' +
                ", imagesUrl=" + imagesUrl +
                ", sightLocation=" + sightLocation +
                ", createTime=" + createTime +
                '}';
    }
}
